From 581cc599458f684ba5287ffe1417950b1611f3aa Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 12 Jan 2012 01:07:23 +0100 Subject: [PATCH] stylecontext: Don't unref animation description We get it without a ref since 6962b49a99eadc7f4266d13f66fca8611802fe09 --- gtk/gtkstylecontext.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index a39cf5abfd..370c782055 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -3063,10 +3063,7 @@ gtk_style_context_notify_state_change (GtkStyleContext *context, return; if (_gtk_animation_description_get_duration (desc) == 0) - { - _gtk_animation_description_unref (desc); - return; - } + return; info = animation_info_lookup (context, region_id, state); @@ -3103,8 +3100,6 @@ gtk_style_context_notify_state_change (GtkStyleContext *context, priv->animations = g_slist_prepend (priv->animations, info); priv->animations_invalidated = TRUE; } - - _gtk_animation_description_unref (desc); } /** -- 2.30.2